package cn.gok.jdkProxy;

/**
 * @Author: chenfan
 * @Description:
 */
public class Test {
    public static void main(String[] args) {
        JdkProxyLog jdkProxyLog = new JdkProxyLog(new UserServiceImpl());
        UserService userService =(UserService)jdkProxyLog.getProxyObject();
        userService.getUser();


        JdkProxyLog jdkProxyLog1 = new JdkProxyLog(new ItemServiceImpl());
        ItemService itemService = (ItemService)jdkProxyLog1.getProxyObject();
        itemService.addItem();

    }
}
